package com.trkj.service;

import lombok.extern.slf4j.Slf4j;

import java.util.Objects;

@Slf4j
public class HelloService {
    private int id;
    public void printInfo(String name){
        log.debug("欢迎您：{}",name);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HelloService service = (HelloService) o;
        return id == service.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
